package com.earl.gsm.domain.gsm.equipment;

import java.io.Serializable;

import javax.persistence.Table;

import com.earl.gsm.commons.domain.AbstractAuditingEntity;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 器材存库实体类 Created by fv on 2016/6/3.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "RepositoryInfo")
public class RepositoryInfo extends AbstractAuditingEntity<Long> implements Serializable {

	// 器材id
	private Long id;

	// 器材名称
	private String equipName;

	// 单价
	private float price;

	// 是否允许租借
	private boolean rentPermission;

	// 存放地点
	private String address;

	// 可租借数量
	private int rentNum;

	// 损坏器材数量
	private int equipDamage;

	// 总数量
	private int equipSum;

	// 该条目是否生效
	private boolean useful;

	public Long id() {
		return id;
	}

	public void id(Long id) {
		this.id = id;
	}

	public String getEquipName() {
		return equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public boolean getRentPermission() {
		return rentPermission;
	}

	public void setRentPermission(boolean rentPermission) {
		this.rentPermission = rentPermission;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getRentNum() {
		return rentNum;
	}

	public void setRentNum(int rentNum) {
		this.rentNum = rentNum;
	}

	public int getEquipDamage() {
		return equipDamage;
	}

	public void setEquipDamage(int equipDamage) {
		this.equipDamage = equipDamage;
	}

	public int getEquipSum() {
		return equipSum;
	}

	public void setEquipSum(int equipSum) {
		this.equipSum = equipSum;
	}

	public boolean getUseful() {
		return useful;
	}

	public void setUseful(boolean useful) {
		this.useful = useful;
	}

	@Override
	public String toString() {
		return "RepositoryInfo [id=" + id + ", equipName=" + equipName + ", price=" + price
				+ ", rentPermission=" + rentPermission + ", address=" + address + ", rentNum=" + rentNum
				+ ", equipDamage=" + equipDamage + ", equipSum=" + equipSum + ", useful=" + useful + "]";
	}

}
